package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.front.pojo.TbCities;
import com.dongdongshop.front.service.CitiesService;
import com.dongdongshop.mapper.TbCitiesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Service
public class CitiesServiceImpl implements CitiesService {

    @Autowired
    private TbCitiesMapper citiesMapper;

    @Override
    public List<TbCities> getCitiesByProvinceid(String provinceid) {
        List<TbCities> citiesList = citiesMapper.getCitiesByProvinceid(provinceid);
        return citiesList;
    }
}
